package com.blindBox.back.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大忽悠
 * @since 2021-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Content implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创作内容点赞数
     */
    private Integer up;

    /**
     * 创作内容点踩数
     */
    private Integer down;

    /**
     * 创作内容举报次数
     */
    private Integer report;

    /**
     * 创作内容由谁发布
     */
    private Integer u_id;

    /**
     * 类型:文章，视频，短评
     */
    private Integer type;

    /**
     * 创作内容发布时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 1:审核通过，0：审核不通过
     */
    private Integer exam_flag;

    /**
     * 审核通过的时间
     */
    private LocalDateTime up_time;

    /**
     * 1:删除 0：不删除
     */
    @TableLogic
    private Integer deleted;


}
